<?php

/**
 * ExtrasCampo filter form.
 *
 * @package    cronos-doctrine
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ExtrasCampoFormFilter extends BaseExtrasCampoFormFilter
{
  public function configure()
  {
      //Personalizado el calendario en los filtros y toda la funcion esta en la Clase Calendario
        $cal = new Calendario();
        $this->widgetSchema['created_at'] = new sfWidgetFormFilterDate(array(
                'from_date' => new sfWidgetFormJQueryDate($cal->getCalendario()),
                 'to_date' =>new sfWidgetFormJQueryDate($cal->getCalendario()),
                 'with_empty' => false    ));


      $this->widgetSchema['updated_at'] = new sfWidgetFormFilterDate(array(
                'from_date' => new sfWidgetFormJQueryDate($cal->getCalendario()),
                 'to_date' =>new sfWidgetFormJQueryDate($cal->getCalendario()),
                 'with_empty' => false    ));
  }
}
